package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblWpVendorConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * 唯品会商户配置 服务类
 * @author Ximi
 * @since 2020-04-15
 */

public interface ITblWpVendorConfigService extends IBaseService {
    /**
     * 删除主数据时连明细数据也一并删除
     * @param model
     * @return
     * @throws ServiceException
     */
    public Integer deleteMD(TblWpVendorConfig model) throws ServiceException;

    /**
     * 获取商户编码
     * @param shopNos 店铺编码
     * @return
     * @throws ServiceException
     */
    public List<String> getVendorCodes(List<String> shopNos) throws ServiceException;


    /**
     * 根据供应商编码取商户信息
     * @param supplierNo
     * @return
     * @throws ServiceException
     */
    TblWpVendorConfig getWpVendorByCode(String supplierNo)throws ServiceException;

    @Cacheable("getAllShopNos")
    List<String> getAllShopNos() throws ServiceException;

    String getVendorCodeByBillNumber(String billNumber)throws ServiceException;


    String getVendorCodeFromBillNumber(String billNumber) throws ServiceException;

    void updateStatus(TblWpVendorConfig params) throws ServiceException;
}

